<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>设置$_POST参数</title>
<link href="../../../theme/style.css" rel="stylesheet" type="text/css" />
<script src="../../../theme/jquery.js" type="text/javascript"></script>
<script src="../../../theme/wscui.js" type="text/javascript"></script>
<script src="../../../theme/style.js" type="text/javascript"></script>
</head>
<body>
<div catalog-feed class="grammar">
	<h1>P</h1>
	<label class="format">
		<span class="t">object</span> <span class="f">P</span>(
			<span class="t">array</span>/<span class="t">string</span> <span class="v">$param</span>
		)
	</label>
	<div class="intro">
		向某个URL请求时, 同时指定POST参数
	</div>
	<div class="return">
		<div class="how">
			<span class="t">return</span> 
			<span class="t">object</span>;
			<span class="c">// 当前对象实例</span>
		</div>
	</div>
	<div class="param">
		<h3>$param</h3>
		<ul>
			<li>
				<span show>array</span>
				<label>以数组格式设置GET参数</label>
				<div hide class="how">
					<span class="c">// 指定$_POST参数名称和值</span><br />
					<span class="f">M</span>(<span class="s">curl</span>) -> <span class="f">P</span>(<span class="t">array</span>(<span class="k">name1</span> => <span class="s">value1</span>, <span class="k">name2</span> => <span class="s">value2</span>)) -> <span class="f">post</span>(<span class="s">http://www.example.com</span>);
				</div>
			</li>
			<li>
				<span show>string</span>
				<label>指定POST请求参数</label>
				<div hide class="how">
					<span class="f">M</span>(<span class="s">curl</span>) -> <span class="f">P</span>(<span class="s">*</span>); <span class="c">// 当前POST下全部参数</span><br />
					<span class="f">M</span>(<span class="s">curl</span>) -> <span class="f">P</span>(<span class="s">name1=value1&name2=value2</span>); <span class="c">// 简易传输</span>
				</div>
			</li>
		</ul>
	</div>
</div>
</body>
</html>